home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Tools&Utilities / Programming / SPIM Folder / Sources / spim-sys.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-05  |  1.4 KB  |  38 lines  |  [TEXT/ttxt]

  1. /* SPIM S20 MIPS simulator.
  2.    System calls implemented by simulator.
  3.    Copyright (C) 1990 by James Larus (larus@cs.wisc.edu).
  4.  
  5.    SPIM is free software; you can redistribute it and/or modify it
  6.    under the terms of the GNU General Public License as published by the
  7.    Free Software Foundation; either version 1, or (at your option) any
  8.    later version.
  9.  
  10.    SPIM is distributed in the hope that it will be useful, but WITHOUT
  11.    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12.    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13.    for more details.
  14.  
  15.    You should have received a copy of the GNU General Public License
  16.    along with GNU CC; see the file COPYING.  If not, write to James R.
  17.    Larus, Computer Sciences Department, University of Wisconsin--Madison,
  18.    1210 West Dayton Street, Madison, WI 53706, USA or to the Free
  19.    Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
  20.  
  21.  
  22. /* $Header: /var/home/cs354/.spim/RCS/spim-syscall.h,v 1.1 1992/10/06 17:34:50 cs354 Exp $
  23. */
  24.  
  25.  
  26. #define PRINT_INT_SYSCALL    1
  27. #define PRINT_FLOAT_SYSCALL    2
  28. #define PRINT_DOUBLE_SYSCALL    3
  29. #define PRINT_STRING_SYSCALL    4
  30. #define READ_INT_SYSCALL    5
  31. #define READ_FLOAT_SYSCALL    6
  32. #define READ_DOUBLE_SYSCALL    7
  33. #define READ_STRING_SYSCALL    8
  34. #define SBRK_SYSCALL        9
  35. #define EXIT_SYSCALL        10
  36. #define PRINT_CHARACTER_SYSCALL    11
  37. #define READ_CHARACTER_SYSCALL    12
  38.